

export enum thresholdEnum{
    Quantity=1,  //满数量
    Amount=2     //满金额
}

export enum dataTypeEnum{
    Main = 1,
    Minor = 2 
}

export enum preferentialEnum{
    Subtraction = 1,//减钱
    Discount = 2, //打折
    Special = 3, //特价
    Gift = 4,  //赠品
    Exchange = 5  //加钱换购
}

export enum objTypeEnum{
    Self = 1,
    Gift = 2,
    CustomGoods = 3,
    Coupon = 4
}

export enum promoTypeStatusEnum{
    Start=1,
    Stop = 2
}

export enum scopeEnum{
    WholeOrder=1,  //整单
    Category=2,  //品类
    Packages=3,  //套餐
    Single=4   //单品
}

export enum PackageGroupStatusEnum  {
    /**待审核 */
    TOBEREVIEWED = 1,
    /*已驳回*/
    REJECT = 2,
    /*已审核*/
    REVIEWED = 3,
    /*已上架*/
    ONSALE = 4,
    /*已下架*/
    OFFSALE = 5,
    /*已作废*/
    VOIDED = 6,
}
PackageGroupStatusEnum
export const PackageGroupStatusOptions:{label:string,value:PackageGroupStatusEnum}[] = [
     {label:"待审核",value:PackageGroupStatusEnum.TOBEREVIEWED},
     {label:"已驳回",value:PackageGroupStatusEnum.REJECT},
     {label:"已审核",value:PackageGroupStatusEnum.REVIEWED},
     {label:"已上架",value:PackageGroupStatusEnum.ONSALE},
     {label:"已下架",value:PackageGroupStatusEnum.OFFSALE},
     {label:"已作废",value:PackageGroupStatusEnum.VOIDED},
]


export enum GoodsTypeEnum{
    THING=1, //实物
    SERVICE=2
}

export enum GoodsStatusEnum  {
    /**待审核 */
    TOBEREVIEWED = 1,
    /*已驳回*/
    REJECT = 2,
    /*已审核*/
    REVIEWED = 3,
    /*已上架*/
    ONSALE = 4,
    /*已下架*/
    OFFSALE = 5,
    /*已作废*/
    VOIDED = 6,
}

export const GoodsStatusOptions:{label:string,value:GoodsStatusEnum}[] = [
     {label:"待审核",value:GoodsStatusEnum.TOBEREVIEWED},
     {label:"已驳回",value:GoodsStatusEnum.REJECT},
     {label:"已审核",value:GoodsStatusEnum.REVIEWED},
     {label:"已上架",value:GoodsStatusEnum.ONSALE},
     {label:"已下架",value:GoodsStatusEnum.OFFSALE},
     {label:"已作废",value:GoodsStatusEnum.VOIDED},
]

export enum PlanSchemeStatusEnum {
    //待审核
    TOBEREVIEW = 1,
    //已审核
    REVIEWED = 2,
    //已驳回
    REJECT = 3,
    //已启用
    ACTIVATED = 4,
    //已禁用
    DISABLED = 5,
    //已过期
    EXPIRED = 6,
}

export const PlanSchemeStatusOptions:{label:string,value:PlanSchemeStatusEnum}[] = [
    {label:"待审核",value:PlanSchemeStatusEnum.TOBEREVIEW},
    {label:"已审核",value:PlanSchemeStatusEnum.REVIEWED},
    {label:"已驳回",value:PlanSchemeStatusEnum.REJECT},
    {label:"已启用",value:PlanSchemeStatusEnum.ACTIVATED},
    {label:"已禁用",value:PlanSchemeStatusEnum.DISABLED},
    {label:"已过期",value:PlanSchemeStatusEnum.EXPIRED},
]

export enum CrowdRangeEnum {
    ALL = 1,
    NEW = 2,
    MEMBER =3
}

export enum OrderStatusEnum{
    //待支付
    TOBEPAID = 1,
    //已取消
    CANCELED = 2,
    //已支付
    PAID = 3,
    //待退款
    TOBEREFUNDED = 4,
    //已退款
    REFUNDED = 5,
    //已完成
    COMPLETED = 6,
    //已使用
    USED = 7
}

export enum cashierModeEnum{
    //收银模式
    SETTLE = 1,
    //核销
    VERIFICATION = 2
}